#include "C3DCamera.h"

C3DCamera::C3DCamera(void)
{
}

C3DCamera::~C3DCamera(void)
{
}

void C3DCamera::Translate()
{
	glTranslatef(m_position.m_x, m_position.m_y, m_position.m_z);

}

void C3DCamera::SetSpeed( C3DPoint speed )
{
	m_speed=speed;
}

void C3DCamera::Tick( int elapsed )
{
	m_position=m_position+m_speed*elapsed;
}

void C3DCamera::SetSpeedX( GLfloat speedx )
{
	m_speed.m_x=speedx;
}

void C3DCamera::SetSpeedY( GLfloat speedy )
{
	m_speed.m_y=speedy;
}

void C3DCamera::SetSpeedZ( GLfloat speedz )
{
	m_speed.m_z=speedz;
}